<?php
/**
 * Created by PhpStorm.
 * User: wangkxin@foxmail.com
 * Date: 2022/4/15
 * Time: 14:15
 */

namespace app\api\controller;
use app\api\model\User as UserModel;

use app\Request;

class User
{
    //用户详情
    public function details(Request $request)
    {
        $uid = $request->middleware('uid');
        $uinfo = UserModel::find($uid);
        return json(['msg'=>'details','data'=>$uinfo]);
    }
}